# -*- coding: utf-8 -*-
"""
-------------------------------------------------
Project Name: luffcity study project
File Name: src.py
Author: kij
Create Date: 2021/2/23
-------------------------------------------------
"""
from view import admin_view, student_view, teacher_view


def select():
	choice_list = {
		"1": ["管理视图", admin_view.show_index],
		"2": ["学生视图", student_view.show_index],
		"3": ["老师视图", teacher_view.show_index],
	}
	while True:
		print("进入选课系统".center(50, "="))
		for item in choice_list:
			print("%s %s".center(50, " ") % (item, choice_list[item][0]))
		choice = input("输入选项:").strip()
		if not choice.isdecimal():
			continue
		if choice not in ["1", "2", "3"]:
			continue
		choice_list[choice][1]()


def run():
	select()
